# -*-* encoding:UTF-8 -*-
# author            : mengy
# date              : 2019/1/28
# python-version    : Python 3.7.0
# description       : 标签类实体
from typing import Any


class Tag(object):
    """
    标签类实体
    """
    tagId = ""
    tagName = ""
    status = ""
    createTime = ""

    def __init__(self, **entries):
        self.__dict__.update(**entries)

    def article2dict(self, tag):
        return {
            'tagId':tag.tagId,
            'tagName':tag.tagName,
            'status':tag.status,
            'createTime':tag.createTime
        }

